
// pages/user/user.js
Page({
  data: {
    userInfo: {},
    collect: 0
  },
  onShow() {
    const userInfo = wx.getStorageSync('userInfo');
    const collect = wx.getStorageSync('collect');
    // console.log(userInfo);
    this.setData({
      userInfo,
      collect: collect.length
    })
  }
})